<div class="dsc-bottom"> <a href="javascript:void(0)" id='submitOrder' class="dsc-btn dsc-btn-acidblue fr">{$Think.lang.cart_index_submit_order}</a> </div>
<script>
    function submitNext() {
        if (!SUBMIT_FORM)
            return;
        if ($('input[name="cart_id[]"]').size() == 0) {
            layer.msg('{$Think.lang.commodity_is_invalid}');
            return;
        }
        if ($('#address_id').val() == '') {
            layer.msg('{$Think.lang.cart_step1_please_set_address}');
                    return;
        }
        if ($('#buy_city_id').val() == '') {
            layer.msg('{$Think.lang.reselect_the_item}');
            return;
        }
        if (($('input[name="pd_pay"]').prop('checked') || $('input[name="rcb_pay"]').prop('checked')) && $('#password_callback').val() != '1') {
            layer.msg('{$Think.lang.enter_payment_password}');
            return;
        }
        if ($('input[name="fcode"]').size() == 1 && $('#fcode_callback').val() != '1') {
            layer.alert('{$Think.lang.enter_f_code}');
            return;
	}
        SUBMIT_FORM = false;
        $('#order_form').submit();
    }
    $(function() {
        $(document).keydown(function(e) {
            if (e.keyCode == 13) {
                submitNext();
                return false;
            }
        });
        $('#submitOrder').on('click', function() {
            submitNext()
        });
        calcOrder();
    });
</script>